import request from '@/utils/http'

// 获取轮播图数据
export const getBannerService = (params = {}) => {
    const { distributionSite = '1' } = params 
    return request.get('/home/banner',{
        params:{
            distributionSite
        }
    })
}
// 获取新鲜好物数据
export const getNewActicleService = () =>{
    return request.get('/home/new')
}
// 获取热门推荐的数据
export const getHotPopularService = () => {
    return request.get('/home/hot')
}
// 获取产品列表的数据
export const getProductListService = () => {
    return request.get('/home/goods')
}